﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Churchtoolkit.DataAccess.Entities;
using Churchtoolkit.Utils.Authentication;
using Churchtoolkit.Utils.MVP;
using Churchtoolkit.Web.Shell.Views;

namespace Churchtoolkit.Web.Shell.Presenters
{
    public class UserProfilePresenter : Presenter<IUserProfileView>
    {
        private readonly IAuthentication _authentication;

        public UserProfilePresenter(IAuthentication authentication)
        {
            _authentication = authentication;
        }

        public SecureMemberDto GetMember()
        {
            return _authentication.GetCurrentMember();
        }
    }
}
